Skip to content

Validator

Sub classes

Name Children Inherits
AlphaNumericValidator
prettyqt.validators.alphanumericvalidator
Validator which checks whether only alphanumeric characters are included.
    BlacklistValidator
    prettyqt.validators.blacklistvalidator
    Validator which excludes a fixed list of strings.
    ColorValidator
    prettyqt.validators.colorvalidator
    Validator which checks for strings representing a color.
      CompositeValidator
      prettyqt.validators.compositevalidator
      BaseClass for combined validators.
      FunctionValidator
      prettyqt.validators.functionvalidator
      Validator which checks based on a given Callable.
        HexValidator
        prettyqt.validators.hexvalidator
        Validator which checks for hexadecimal values.
          IntegerValidator
          prettyqt.validators.integervalidator
          Validator to check for integer values.
            JsonValidator
            prettyqt.validators.jsonvalidator
            Validator which checks for strings which can be parsed as JSON.
              MonotonicListValidator
              prettyqt.validators.monotoniclistvalidator
              Validator which checks whether given string contains a monotonic list.
                NotStrictValidator
                prettyqt.validators.notstrictvalidator
                Validator which turns Invalid state into Intermediate state.
                  PathValidator
                  prettyqt.validators.pathvalidator
                  Validator which checks whether given string is a valid path.
                    PythonCodeValidator
                    prettyqt.validators.pythoncodevalidator
                    Validator which checks whether given string is valid Python code.
                      QssValidator
                      prettyqt.validators.qssvalidator
                      Validator which checks whether given string is a parseable css string.
                        RegexPatternValidator
                        prettyqt.validators.regexpatternvalidator
                        Validator which checks whether given string is a parseable regex pattern.
                          BaseRegexValidator
                          prettyqt.validators.regexvalidators
                          BaseScientificValidator
                          prettyqt.validators.scientificvalidators
                          TextLengthValidator
                          prettyqt.validators.textlengthvalidator
                          Validator which checks whether given text has a specific length.
                            WhitelistValidator
                            prettyqt.validators.whitelistvalidator
                            Validator which allows a fixed list of strings.

                            Base classes

                            Name Children Inherits
                            ValidatorMixin
                            prettyqt.gui.validator
                            QValidator
                            PySide6.QtGui
                            QValidator(self, /, parent: PySide6.QtCore.QObject | None \= None) -> None

                            ⋔ Inheritance diagram

                            graph TD
                              422589614["gui.Validator"]
                              1804432572["gui.ValidatorMixin"]
                              3227531497["core.ObjectMixin"]
                              2751680898["builtins.object"]
                              49520861["QtGui.QValidator"]
                              3984060476["QtCore.QObject"]
                              37984305["Shiboken.Object"]
                              1804432572 --> 422589614
                              3227531497 --> 1804432572
                              2751680898 --> 3227531497
                              49520861 --> 422589614
                              3984060476 --> 49520861
                              37984305 --> 3984060476
                              2751680898 --> 37984305

                            🛈 DocStrings

                            Bases: ValidatorMixin, QValidator

                            Source code in prettyqt/gui/validator.py
                            class Validator(ValidatorMixin, QtGui.QValidator):
                                pass
                            

                            :fa-brands-github: Show source on GitHub